﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using School.Model.Organization;

namespace School.API
{
    /// <summary>
    /// 组织输出对象
    /// </summary>
    public class OrganizationResultModel: ResultBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        public int? Levels { get; set; }

        /// <summary>
        /// 性质ID:1=机构;2=部门
        /// </summary>
        public int? PropertyId { get; set; }

        /// <summary>
        /// 上级组织ID
        /// </summary>
        public string ParentId { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 全编码
        /// </summary>
        public string FullCode { get; set; }

        /// <summary>
        /// 所属机构ID
        /// </summary>
        public string OrganizationId { get; set; }

        /// <summary>
        /// 类型编号
        /// </summary>
        public string TypeNumbers { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// 子集列表
        /// </summary>
        public List<OrganizationResultModel> ChildList { get; set; }
    }
}
